@import '../../styles/config';

$popup-border-radius: 8px;

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 200;
    background-color: rgba(222, 222, 222, 0.62); /*dim the background*/
    border: 1px solid $argo-color-gray-4;

    .popup-container {
        position: relative;
        box-shadow: 3px 3px 20px #888888;
        margin: 0 auto;
        top: 50%;
        transform: translateY(-50%);
        min-width: 400px;
        max-width: 1000px;
        max-height: 600px;
        z-index: 20;
        border-radius: $popup-border-radius;

        &__header {
            line-height: 60px;
            padding-left: 30px;
            height: 60px;
            border-top-right-radius: $popup-border-radius;
            border-top-left-radius: $popup-border-radius;

            h2 {
                margin-left: 5%;
                line-height: 50px;
            }

            i {
                font-size: 21px;
                float: right;
                position: absolute;
                right: 20px;
                top: 20px;
                cursor: pointer;
            }

            &__normal {
                background-color: $argo-color-gray-2;
            }
    
            &__red {
                background-color: $argo-color-red;
                color: $argo-color-gray-1;
            }

            &__yellow {
                background-color: $argo-color-yellow;
            }    
        }

        &__footer {
            background-color: $argo-color-gray-1;
            bottom: 0;
            padding-top: 20px;
            padding-left: 30px;
            padding-bottom: 30px;
            border-bottom-right-radius: $popup-border-radius;
            border-bottom-left-radius: $popup-border-radius;

            & > .ax-button {
                min-width: 120px;
                margin-right: 20px;
            }

            &--additional-padding {
                padding-left: 135px;
            }
        }

        &__body {
            background-color: $argo-color-gray-1;

            &__hasNoIcon {
                padding-left: 30px;
            }

            h4, p {
                margin-right: 10px;
                word-wrap: break-word;
            }

            h4 {
                margin-top: 40px;
                font-size: 15px;
                font-weight: bold;
            }

            p {
                font-size: 15px;
                margin-top: 10px;
                margin-bottom: 10px;
                color: $argo-color-gray-6;
            }
        }

        &__icon {
            display: inline-flex;
            align-items: center;
            max-width: 120px;

            & > i {
                margin-left: 5px;
                font-size: 80px;

                &.warning {
                    color: $argo-color-yellow;
                }

                &.success {
                    color: $argo-success-color;
                }

                &.failed {
                    color: $argo-failed-color;
                }
            }
        }
    }
}
